package com.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 药品项目表（包括了重要、中成药、草药）
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@Schema(description = "药品实体类")
public class Drug implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "药品id")
    private Long id;

    @Schema(description = "药品代码")
    private String code;

    @Schema(description = "药品名称")
    private String name;

    @Schema(description = "药品规格")
    private String format;

    @Schema(description = "药品单价")
    private BigDecimal price;

    @Schema(description = "药品单位")
    private String unit;

    @Schema(description = "药品制造商")
    private String manufacturer;

    @Schema(description = "药品类别id")
    private Long dosageid;

    @Schema(description = "类别id")
    private Long typeid;

    @Schema(description = "拼音缩写码")
    private String mnemoniccode;

    @Schema(description = "创建时间")
    private LocalDateTime createdate;

    @Schema(description = "库存数量")
    private Long stock;

    @Schema(description = "状态")
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }
    public Long getDosageid() {
        return dosageid;
    }

    public void setDosageid(Long dosageid) {
        this.dosageid = dosageid;
    }
    public Long getTypeid() {
        return typeid;
    }

    public void setTypeid(Long typeid) {
        this.typeid = typeid;
    }
    public String getMnemoniccode() {
        return mnemoniccode;
    }

    public void setMnemoniccode(String mnemoniccode) {
        this.mnemoniccode = mnemoniccode;
    }
    public LocalDateTime getCreatedate() {
        return createdate;
    }

    public void setCreatedate(LocalDateTime createdate) {
        this.createdate = createdate;
    }
    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Drug{" +
            "id=" + id +
            ", code=" + code +
            ", name=" + name +
            ", format=" + format +
            ", price=" + price +
            ", unit=" + unit +
            ", manufacturer=" + manufacturer +
            ", dosageid=" + dosageid +
            ", typeid=" + typeid +
            ", mnemoniccode=" + mnemoniccode +
            ", createdate=" + createdate +
            ", stock=" + stock +
            ", status=" + status +
        "}";
    }
}
